<template>
  <div>
    <li>{{msg}} <button @click="del">删除</button></li>
  </div>
</template>

<script>
export default {
  props: ['msg', 'index'],
  methods: {
    del () {
      this.$emit('ddd', this.index)
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
